package com.xuecheng.content.service;

import com.xuecheng.commons.model.dto.BindTeachplanMediaDto;
import com.xuecheng.commons.model.dto.TeachplanDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.commons.model.vo.TeachplanVo;
import com.xuecheng.content.domain.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 课程计划 服务类
 * @author itheima
 * @since 2022-09-17
 */
public interface TeachplanService extends IService<Teachplan> {
    //课程计划列表-树形结构
    ResponseResult<TeachplanVo> treeNodes(Long courseId);
    //保存或者更新课程计划
    ResponseResult saveOrUpdate(TeachplanDto dto);
    //根据id删除课程计划
    ResponseResult deleteById(Long id);
    //课程计划绑定媒资
    ResponseResult associateMedia(BindTeachplanMediaDto dto);
}
